package com.cwz.core.exception.auth;

import com.cwz.core.utils.string.StringUtils;

/**
 * @program: w-demo
 * @description: 未能通过的权限认证异常
 * @author: Wen
 **/
public class NotPermissionException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	public NotPermissionException(String permission) {
		super(permission);
	}

	public NotPermissionException(String[] permissions) {
		super(StringUtils.join(permissions, ","));
	}
}
